酷影[V2].js 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // 播放器ijk --> "playerType":1
  2. var 二级=`js:
  3. try {
  4. let html = request(input);
  5. print(html);
  6. html = JSON.parse(html);
  7. let node = html.data;
  8. VOD = {
  9. vod_id: node["vod_id"],
  10. vod_name: node["vod_name"],
  11. vod_pic: node["vod_pic"],
  12. type_name: node["vod_class"],
  13. vod_year: node["vod_year"],
  14. vod_area: node["vod_area"],
  15. vod_remarks: node["vod_remarks"],
  16. vod_actor: node["vod_actor"],
  17. vod_director: node["vod_director"],
  18. vod_content: node["vod_content"].strip()
  19. };
  20. let episodes = node.vod_url_with_player;
  21. let playMap = {};
  22. if (typeof play_url === "undefined") {
  23. var play_url = ""
  24. }
  25. episodes.forEach(function(ep) {
  26. let source = ep["name"];
  27. if (!playMap.hasOwnProperty(source)) {
  28. playMap[source] = []
  29. }
  30. playMap[source].append(ep["url"])
  31. });
  32. let playFrom = [];
  33. let playList = [];
  34. Object.keys(playMap).forEach(function(key) {
  35. playFrom.append(key);
  36. playList.append(playMap[key])
  37. });
  38. let vod_play_from = playFrom.join("$$$");
  39. let vod_play_url = playList.join("$$$");
  40. VOD["vod_play_from"] = vod_play_from;
  41. VOD["vod_play_url"] = vod_play_url
  42. } catch (e) {
  43. log("获取二级详情页发生错误:" + e.message)
  44. }
  45. `;
  46. var rule = {
  47. title: '酷影[V2]', // csp_AppYsV2
  48. host: 'http://cms.realdou.cn',
  49. homeUrl:'/api.php/app/index_video',
  50. url: '/api.php/app/video?tid=fyclass&class=&area=&lang=&year=&limit=20&pg=fypage',
  51. // url: '/api.php/app/video?tid=fyclassfyfilter&limit=20&pg=fypage',
  52. // filter_url:'&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&year={{fl.year}}',
  53. // filter: {
  54. // "6":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"}]}],
  55. // "7":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"}]}],
  56. // "8":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"}]}]
  57. // },
  58. detailUrl:'/api.php/app/video_detail?id=fyid',
  59. searchUrl: '/api.php/app/search?text=**&pg=fypage',
  60. searchable: 2,
  61. quickSearch: 0,
  62. // filterable:1,//是否启用分类筛选,
  63. headers:{'User-Agent':'Dart/2.14 (dart:io)'},
  64. timeout:5000,
  65. class_name:'4K电视剧&4K电影&儿童4K', // 分类筛选 /api.php/app/nav
  66. class_url:'7&6&8',
  67. play_parse:true,
  68. lazy:`js:
  69. input = {
  70. jx: 0,
  71. url: input,
  72. parse: 0,
  73. header: JSON.stringify({
  74. 'user-agent': 'Lavf/58.12.100'
  75. })
  76. }
  77. `,
  78. limit:6,
  79. 推荐:'json:list[5];vlist;*;*;*;*',
  80. double:true,
  81. 一级:'json:list;vod_name;vod_pic;vod_remarks;vod_id',
  82. 二级:二级,
  83. 搜索:'*',
  84. }